package homework;

/*同时开启两个线程，共同输出1-100之间的所有数字，并且将输出奇数的线程名称打印出来*/
public class Test3 {
    public static void main(String[] args) {
        Number n = new Number();
        Thread t1 = new Thread(n, "线程1");
        Thread t2 = new Thread(n, "线程2");
        t1.start();
        t2.start();
    }
}
